import java.util.Scanner; 

public class Main4 {
	public static void main(String[] args) {
		 Scanner sc=new Scanner(System.in);
		 int x=sc.nextInt();
		 if(x<0)
			 System.out.print("0");
		 else if(x==0)
			 System.out.print("32");
		 else
		 {
		 String s= Integer.toBinaryString(x); 
		 System.out.print(32-s.length());
		 }
	}

}
